package org.jeecg.modules.param.station.service.impl;

import org.jeecg.modules.param.station.entity.BikeStationHeartbeat;
import org.jeecg.modules.param.station.mapper.BikeStationHeartbeatMapper;
import org.jeecg.modules.param.station.service.IBikeStationHeartbeatService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 网点心跳包记录表
 * @Author: jeecg-boot
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Service
public class BikeStationHeartbeatServiceImpl extends ServiceImpl<BikeStationHeartbeatMapper, BikeStationHeartbeat> implements IBikeStationHeartbeatService {
    @Resource
    private BikeStationHeartbeatMapper bikeStationHeartbeatMapper;

    @Override
    public boolean stationIsLowBattery(String id) {
        Integer a  =bikeStationHeartbeatMapper.stationIsLowBattery(id);
        if (a==0){
            return false;
        }else {
            return true;
        }
    }
}
